<?php /* Smarty version 2.6.26, created on 2012-06-11 04:51:59
         compiled from ../templates/publication/index.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', '../templates/publication/index.tpl', 25, false),)), $this); ?>
<div class="publication sendForm">

	<h3>Publicaciones</h3>
	<form name="publication">

    	<div class="action">

        	<div class="actionLabel">

            	<label></label>

                <input type="hidden" name="id"/>
                <input type="hidden" name="id_user" value="<?php echo $this->_tpl_vars['id_user']; ?>
" />
                <input type="hidden" name="reg_date"/>
                				
                <input type="text" name="title" />
                
                
                <select name="subcategory" class="subIndex">

                	<option value="null">-</option>

                	<?php unset($this->_sections['list']);
$this->_sections['list']['loop'] = is_array($_loop=$this->_tpl_vars['subcategory']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['list']['name'] = 'list';
$this->_sections['list']['show'] = true;
$this->_sections['list']['max'] = $this->_sections['list']['loop'];
$this->_sections['list']['step'] = 1;
$this->_sections['list']['start'] = $this->_sections['list']['step'] > 0 ? 0 : $this->_sections['list']['loop']-1;
if ($this->_sections['list']['show']) {
    $this->_sections['list']['total'] = $this->_sections['list']['loop'];
    if ($this->_sections['list']['total'] == 0)
        $this->_sections['list']['show'] = false;
} else
    $this->_sections['list']['total'] = 0;
if ($this->_sections['list']['show']):

            for ($this->_sections['list']['index'] = $this->_sections['list']['start'], $this->_sections['list']['iteration'] = 1;
                 $this->_sections['list']['iteration'] <= $this->_sections['list']['total'];
                 $this->_sections['list']['index'] += $this->_sections['list']['step'], $this->_sections['list']['iteration']++):
$this->_sections['list']['rownum'] = $this->_sections['list']['iteration'];
$this->_sections['list']['index_prev'] = $this->_sections['list']['index'] - $this->_sections['list']['step'];
$this->_sections['list']['index_next'] = $this->_sections['list']['index'] + $this->_sections['list']['step'];
$this->_sections['list']['first']      = ($this->_sections['list']['iteration'] == 1);
$this->_sections['list']['last']       = ($this->_sections['list']['iteration'] == $this->_sections['list']['total']);
?>

                    	<option value="<?php echo $this->_tpl_vars['subcategory'][$this->_sections['list']['index']]['sub_IDsubcategory']; ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['subcategory'][$this->_sections['list']['index']]['sub_description'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall') : smarty_modifier_escape($_tmp, 'htmlall')); ?>
</option>

                    <?php endfor; endif; ?> 

                </select>
                
                <br />
                <textarea name="description" rows="5" cols="45"> </textarea>

                <input type="hidden" name="response" value="0"/>
                <input type="hidden" name="ini_date"/>
                <input type="hidden" name="end_date"/>
                
                <input type="button" class="new"  value="Publicar" />


            </div>

            
			<!--
            <div class="actionButtons">

                <p>

                	<input type="button" class="modify"  value="Modificar" />

                	<input type="button" class="delete"  value="Eliminar" />

                    <span> cancelar </span>

                </p>

            </div>
			
        </div>
		-->
        <div class="myList">

            <table>            

                <tbody class="tbody">

                    <?php unset($this->_sections['list']);
$this->_sections['list']['loop'] = is_array($_loop=$this->_tpl_vars['listPublication']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['list']['name'] = 'list';
$this->_sections['list']['show'] = true;
$this->_sections['list']['max'] = $this->_sections['list']['loop'];
$this->_sections['list']['step'] = 1;
$this->_sections['list']['start'] = $this->_sections['list']['step'] > 0 ? 0 : $this->_sections['list']['loop']-1;
if ($this->_sections['list']['show']) {
    $this->_sections['list']['total'] = $this->_sections['list']['loop'];
    if ($this->_sections['list']['total'] == 0)
        $this->_sections['list']['show'] = false;
} else
    $this->_sections['list']['total'] = 0;
if ($this->_sections['list']['show']):

            for ($this->_sections['list']['index'] = $this->_sections['list']['start'], $this->_sections['list']['iteration'] = 1;
                 $this->_sections['list']['iteration'] <= $this->_sections['list']['total'];
                 $this->_sections['list']['index'] += $this->_sections['list']['step'], $this->_sections['list']['iteration']++):
$this->_sections['list']['rownum'] = $this->_sections['list']['iteration'];
$this->_sections['list']['index_prev'] = $this->_sections['list']['index'] - $this->_sections['list']['step'];
$this->_sections['list']['index_next'] = $this->_sections['list']['index'] + $this->_sections['list']['step'];
$this->_sections['list']['first']      = ($this->_sections['list']['iteration'] == 1);
$this->_sections['list']['last']       = ($this->_sections['list']['iteration'] == $this->_sections['list']['total']);
?>

                    <tr id="<?php echo $this->_tpl_vars['listPublication'][$this->_sections['list']['index']]['pub_IDpublication']; ?>
">
						<table class="publication_list">
                        	<tr>
                        		<td>Titulo : <?php echo ((is_array($_tmp=$this->_tpl_vars['listPublication'][$this->_sections['list']['index']]['pub_title'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall') : smarty_modifier_escape($_tmp, 'htmlall')); ?>
</td>    
                            </tr>
                        	<tr>
	                        	<td><?php echo ((is_array($_tmp=$this->_tpl_vars['listPublication'][$this->_sections['list']['index']]['pub_textContent'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall') : smarty_modifier_escape($_tmp, 'htmlall')); ?>
</td>    
                            </tr>
                        </table>
                    </tr>

                    <?php endfor; endif; ?>

                </tbody>

            </table>
			
        </div>
		
	</form>

</div>